<?php

namespace App\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * TkAsyncTasks
 *
 * @ORM\Table(name="tk_async_tasks", indexes={@ORM\Index(name="vccId", columns={"vcc_id"})})
 * @ORM\Entity
 */
class TkAsyncTasks
{
    /**
     * @var int
     *
     * @ORM\Column(name="id", type="integer", nullable=false)
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    private $id;

    /**
     * @var int
     *
     * @ORM\Column(name="vcc_id", type="integer", nullable=false, options={"comment"="企业ID"})
     */
    private $vccId = '0';

    /**
     * @var int
     *
     * @ORM\Column(name="flow_id", type="integer", nullable=false, options={"comment"="工单类型ID"})
     */
    private $flowId = '0';

    /**
     * @var string
     *
     * @ORM\Column(name="flow_name", type="string", length=200, nullable=false, options={"comment"="工单类型"})
     */
    private $flowName = '';

    /**
     * @var int
     *
     * @ORM\Column(name="menu_id", type="integer", nullable=false, options={"comment"="自定义菜单ID"})
     */
    private $menuId = '0';

    /**
     * @var string
     *
     * @ORM\Column(name="task_name", type="string", length=200, nullable=false, options={"comment"="任务名称"})
     */
    private $taskName = '';

    /**
     * @var int
     *
     * @ORM\Column(name="task_type", type="smallint", nullable=false, options={"comment"="类型（1转移 2催单 3结单 4删除）"})
     */
    private $taskType = '0';

    /**
     * @var int
     *
     * @ORM\Column(name="progress", type="smallint", nullable=false, options={"comment"="进度（百分比是数字）"})
     */
    private $progress = '0';

    /**
     * @var int
     *
     * @ORM\Column(name="total_nums", type="integer", nullable=false, options={"comment"="总数"})
     */
    private $totalNums = '0';

    /**
     * @var int
     *
     * @ORM\Column(name="success_nums", type="integer", nullable=false, options={"comment"="成功数"})
     */
    private $successNums = '0';

    /**
     * @var int
     *
     * @ORM\Column(name="defeat_nums", type="integer", nullable=false, options={"comment"="失败数"})
     */
    private $defeatNums = '0';

    /**
     * @var int
     *
     * @ORM\Column(name="start_time", type="integer", nullable=false, options={"comment"="开始时间"})
     */
    private $startTime = '0';

    /**
     * @var int
     *
     * @ORM\Column(name="end_time", type="integer", nullable=false, options={"comment"="结束时间"})
     */
    private $endTime = '0';

    /**
     * @var int
     *
     * @ORM\Column(name="total_secs", type="integer", nullable=false, options={"comment"="用时"})
     */
    private $totalSecs = '0';

    /**
     * @var int
     *
     * @ORM\Column(name="oper_id", type="integer", nullable=false, options={"comment"="操作人id"})
     */
    private $operId = '0';

    /**
     * @var string
     *
     * @ORM\Column(name="oper_name", type="string", length=150, nullable=false, options={"comment"="操作人名称"})
     */
    private $operName = '';

    /**
     * @var string
     *
     * @ORM\Column(name="es_condition", type="text", length=0, nullable=false, options={"comment"="ES查询条件"})
     */
    private $esCondition;

    /**
     * @var string
     *
     * @ORM\Column(name="front_condition", type="text", length=0, nullable=false, options={"comment"="前端所有查询条件"})
     */
    private $frontCondition;

    public function getId(): ?int
    {
        return $this->id;
    }

    public function getVccId(): ?int
    {
        return $this->vccId;
    }

    public function setVccId(int $vccId): self
    {
        $this->vccId = $vccId;

        return $this;
    }

    public function getFlowId(): ?int
    {
        return $this->flowId;
    }

    public function setFlowId(int $flowId): self
    {
        $this->flowId = $flowId;

        return $this;
    }

    public function getFlowName(): ?string
    {
        return $this->flowName;
    }

    public function setFlowName(string $flowName): self
    {
        $this->flowName = $flowName;

        return $this;
    }

    public function getMenuId(): ?int
    {
        return $this->menuId;
    }

    public function setMenuId(int $menuId): self
    {
        $this->menuId = $menuId;

        return $this;
    }

    public function getTaskName(): ?string
    {
        return $this->taskName;
    }

    public function setTaskName(string $taskName): self
    {
        $this->taskName = $taskName;

        return $this;
    }

    public function getTaskType(): ?int
    {
        return $this->taskType;
    }

    public function setTaskType(int $taskType): self
    {
        $this->taskType = $taskType;

        return $this;
    }

    public function getProgress(): ?int
    {
        return $this->progress;
    }

    public function setProgress(int $progress): self
    {
        $this->progress = $progress;

        return $this;
    }

    public function getTotalNums(): ?int
    {
        return $this->totalNums;
    }

    public function setTotalNums(int $totalNums): self
    {
        $this->totalNums = $totalNums;

        return $this;
    }

    public function getSuccessNums(): ?int
    {
        return $this->successNums;
    }

    public function setSuccessNums(int $successNums): self
    {
        $this->successNums = $successNums;

        return $this;
    }

    public function getDefeatNums(): ?int
    {
        return $this->defeatNums;
    }

    public function setDefeatNums(int $defeatNums): self
    {
        $this->defeatNums = $defeatNums;

        return $this;
    }

    public function getStartTime(): ?int
    {
        return $this->startTime;
    }

    public function setStartTime(int $startTime): self
    {
        $this->startTime = $startTime;

        return $this;
    }

    public function getEndTime(): ?int
    {
        return $this->endTime;
    }

    public function setEndTime(int $endTime): self
    {
        $this->endTime = $endTime;

        return $this;
    }

    public function getTotalSecs(): ?int
    {
        return $this->totalSecs;
    }

    public function setTotalSecs(int $totalSecs): self
    {
        $this->totalSecs = $totalSecs;

        return $this;
    }

    public function getOperId(): ?int
    {
        return $this->operId;
    }

    public function setOperId(int $operId): self
    {
        $this->operId = $operId;

        return $this;
    }

    public function getOperName(): ?string
    {
        return $this->operName;
    }

    public function setOperName(string $operName): self
    {
        $this->operName = $operName;

        return $this;
    }

    public function getEsCondition(): ?string
    {
        return $this->esCondition;
    }

    public function setEsCondition(string $esCondition): self
    {
        $this->esCondition = $esCondition;

        return $this;
    }

    public function getFrontCondition(): ?string
    {
        return $this->frontCondition;
    }

    public function setFrontCondition(string $frontCondition): self
    {
        $this->frontCondition = $frontCondition;

        return $this;
    }


}
